<template>
  <div class="app-container">
    <el-form :model="searchForm" label-width="80px" @keyup.enter.native="search()">
      <el-row>
        <el-col class="other">
          <el-form-item label="关键字" size="small">
            <el-input v-model="searchForm.keyword"></el-input>
          </el-form-item>
        </el-col>
        <el-col class="other">
          <el-form-item prop="type" label="类型" size="small">
            <el-select v-model="searchForm.type" placeholder="请选择">
              <!--<el-option :value="item.value"></el-option>-->
              <el-option
                v-for="item in GLOBAL.selectTypeList"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col class="searchBtn">
          <el-form-item size="small">
            <el-button type="primary" icon="el-icon-search" @click="search()">搜索</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>

    <div class="table-btn" v-if="outerVisible">
      <el-dialog :title="dialogTitle" :visible.sync="outerVisible" width="1000px">
        <el-form ref="teamRow" :model="teamRow" label-width="auto">
          <el-row>
            <el-col>
              <el-form-item label="社保缴费信息(最近十条)" size="small" style="margin-left: 0px">
              </el-form-item>
            </el-col>
          </el-row>
          <my-table
            :data="tableData1"
            :col-configs="socialcolConfigs"
            v-loading="listLoading1"
            :page-num="1"
            :page-size="10"
          >
          </my-table>
          <el-row>
            <el-col class="other">
              <el-form-item label="人员档案信息" size="small" style="margin-left: 0px">
              </el-form-item>
            </el-col>
          </el-row>
          <my-table
            :data="tableData2"
            :col-configs="perArchivesColConfigs"
            v-loading="listLoading2"
            :page-num="1"
            :page-size="10"
            @openVisible="openVisible"
          >
          </my-table>
        </el-form>
      </el-dialog>
    </div>

    <div class="table-btn" v-if="outerVisible1">
    </div>

    <div
      v-if="searchFormList.type === 3 && hackReset"
      style="font-size: 14px;margin-bottom: 8px"
    >
      人员信息
    </div>
    <myTable
      :data="tableData"
      :col-configs="perColConfigs"
      v-loading="listLoading"
      v-if="(searchFormList.type === 1 || searchFormList.type === 3) &&hackReset"
      key="1"
      :page-num="pageNum"
      :page-size="pageSize"
    >
      <el-table-column
        slot="opt"
        fixed="right"
        label="操作"
        width="120">
        <template slot-scope="scope">
          <el-button
            @click.native.prevent="detail(scope)"
            type="text"
            size="small">
            详情
          </el-button>
        </template>
      </el-table-column>
    </myTable>
    <el-pagination
      key="3"
      v-if="searchFormList.type === 1 &&hackReset"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="pageNum"
      :page-sizes="[10, 20, 30, 40]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
    <div
      v-if="searchFormList.type === 3  &&hackReset"
      style="font-size: 14px;margin: 12px 0 8px;"
    >
      项目信息
    </div>
    <my-table
      key="2"
      :expand-all="expandAll"
      :data="tableDatan"
      :col-configs="projectColConfigs"
      v-loading="listLoading"
      v-if="(searchFormList.type === 2 ||searchFormList.type === 3) &&hackReset"
      :page-num="pageNum1"
      :page-size="pageSize1"
      :table-type="tableType"
    >
    </my-table>
    <el-pagination
      key="4"
      v-if="(searchFormList.type === 2 || searchFormList.type === 3) &&hackReset"
      @size-change="handleSizeChange1"
      @current-change="handleCurrentChange1"
      :current-page="pageNum1"
      :page-sizes="[10, 20, 30, 40]"
      :page-size="pageSize1"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total1">
    </el-pagination>

    <el-dialog title="文件查看" :visible.sync="imgVisible" width="600px">
      <img style="max-width: 540px" :src="imgMsg.src" alt="">
    </el-dialog>
    <el-dialog :title="imgMsg.label" :visible.sync="imgTableVisible" width="450px">
      <my-table
        :data="imgTableData"
        :col-configs="imgConfigs"
        v-loading="listLoading"
        @openVisible="openVisible"
        :currentView="currentView"
      >
      </my-table>
    </el-dialog>
  </div>
</template>

<script>
  import {
    globalIndex,
    detailSelect,
    selectList
  } from '@/api/globalindex'
  import myTable from '@/components/myTable'

  import global from '@/components/global'
  import { Message } from 'element-ui'
  import { AreaSelect } from 'vue-area-linkage'
  import { pca } from 'area-data'
  import { formatDate } from '@/utils/index'

  const formatter = function(row, column) {
    if (row[column.property]) {
      let obj = {}
      obj = global[`${column.property}List`].find((item) => {
        return item.value === parseInt(row[column.property]) // 筛选出匹配数据
      })
      return obj.label
    }
  }

  const filePath = {
    props: ['colConfig'],
    methods: {
      openVisible(label, src, collectId) {
        const msg = {
          label: label,
          src: src,
          collectId: collectId
        }
        this.$emit('openImgVisible', msg)
      }
    },
    template: `
  <el-table-column :label="colConfig.label" :width="colConfig.width">
      <span slot-scope="scope">
      <a v-if="scope.row[colConfig.prop]" @click="openVisible(colConfig.label,scope.row[colConfig.prop],scope.row.collectId)">查看
      </a>
      <a v-else style="color:red;">X</a>
      </span>
  </el-table-column>
  `
  }

  const time = {
    props: ['colConfig'],
    filters: {
      formatDate(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyy-MM-dd')
      }
    },
    template: `
  <el-table-column :label="colConfig.label" :width="colConfig.width">
      <span slot-scope="scope">
        {{ scope.row[colConfig.prop] | formatDate }}
      </span>
  </el-table-column>
  `
  }

  const configs = {
    props: ['colConfig'],
    filters: {
      formatMonth(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyyMM')
      },
      formatDate(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyyMMdd')
      },
      formatTime(time) {
        console.log(time)
        var date = new Date(time)
        return formatDate(date, 'yyyy-MM-dd hh:mm:ss')
      },
      formatter(row, prop) {
        if (row[prop]) {
          let obj = {}
          obj = global[`${prop}List`].find((item) => {
            return item.value === parseInt(row[prop]) // 筛选出匹配数据
          })
          return obj.label
        }
      }
    },
    template: `
  <el-table-column :label="colConfig.label">
            <el-table-column  v-for="(item, index) in colConfig.children"  :label="item.label" :width="item.width">
                <span slot-scope="scope" >
                    <span v-if="item.component==='month'"> {{ scope.row[item.prop] | formatMonth }}</span>
                    <span v-else-if="item.component==='time'"> {{ scope.row[item.prop] | formatDate }}</span>
                    <span v-else-if="item.component==='formatter'"> {{ scope.row,item.prop | formatter }}</span>
                    <span v-else >{{scope.row[item.prop]}}</span>
                </span>
            </el-table-column>
  </el-table-column>
  `
  }

  const configs1 = {
    props: ['colConfig'],
    filters: {
      formatDate(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyyMM')
      },
      formatTime(time) {
        var date = new Date(time)
        return formatDate(date, 'yyyy-MM-dd hh:mm:ss')
      },
      filterInsuredStatus(type) {
        if (type) {
          let obj = {}
          obj = global.insuredStatusList.find((item) => {
            return item.value === type // 筛选出匹配数据
          })
          return obj.label
        }
      },
      filterInsuredUnit(type) {
        if (type) {
          let obj = {}
          obj = global.insuredUnitList.find((item) => {
            return item.value === type // 筛选出匹配数据
          })
          return obj.label
        }
      }
    },
    template: `
  <el-table-column :label="colConfig.label" :width="colConfig.width">
            <el-table-column  v-for="(item, index) in colConfig.children"  :label="item.label" :width="item.width">
                <span slot-scope="scope" >
                    <span v-if="item.component==='time'"> {{ scope.row[item.prop] | formatDate }}</span>
                    <span v-else-if="item.component==='insuredStatus'"> {{ scope.row[item.prop] | filterInsuredStatus }}</span>
                    <span v-else-if="item.component==='insuredUnit'"> {{ scope.row[item.prop] | filterInsuredUnit }}</span>
                    <span v-else >{{scope.row[item.prop]}}</span>
                </span>
            </el-table-column>
  </el-table-column>
  `
  }

  const isTenderBook = function(row, column) {
    return row.isTenderBook ? '有' : '无'
  }

  const professions = function(row, column) {
    if (row.professions) {
      return row.professions.split('-')[0]
    }
  }

  const isProject = function(row, column) {
    return row.isProject === 1 ? '有' : '无'
  }

  const isAdd = function(row, column) {
    return row.isAdd === 1 ? '增' : '减'
  }

  const projectStage = function(row, column) {
    if (row.projectStage) {
      let obj = {}
      obj = global.projectStageList.find((item) => {
        return item.value === row.projectStage // 筛选出匹配数据
      })
      return obj.label
    }
  }

  const sex = function(row, column) {
    return row.sex ? '男' : '女'
  }

  const tertiarySector = function(row, column) {
    if (row.tertiarySector) {
      return row.tertiarySector
    } else {
      if (row[column.property]) {
        let obj = {}
        obj = global[`${column.property}List`].find((item) => {
          return item.value === row[column.property] // 筛选出匹配数据
        })
        return obj.label
      }
    }
  }

  export default {
    name: 'globalindex',
    components: {
      myTable,
      AreaSelect
    },
    data() {
      return {
        perColConfigs: [
          { prop: 'classification', label: '分类', width: '100', formatter: formatter },
          { prop: 'genre', label: '类型', width: '100', formatter: formatter },
          { prop: 'primarySector', label: '一级部门', width: '100', formatter: formatter },
          { prop: 'secondarySector', label: '二级部门', width: '100', formatter: formatter },
          { prop: 'employeeCode', label: '员工编号', width: '150' },
          { prop: 'teamName', label: '三级部门', width: '150', fixed: true },
          { prop: 'name', label: '姓名', width: '100', fixed: true },
          { prop: 'position', label: '职务', width: '150' },
          // { prop: 'rank', label: '职级', width: '150', formatter: formatter },
          { prop: 'form', label: '用工形式', width: '100', formatter: formatter },
          { prop: 'sex', label: '性别', width: '100', formatter: sex },
          { prop: 'idNumber', label: '身份证', width: '150' },
          { prop: 'tel', label: '联系电话', width: '150' },
          { prop: 'birthday', label: '出生日期', width: '100', component: time },
          { prop: 'employeeAge', label: '年龄(岁)', width: '100' },
          { prop: 'hireDate', label: '入职日期', width: '100', component: time },
          { prop: 'age', label: '司龄', width: '100' },
          { prop: 'email', label: '邮箱', width: '100' },
          { prop: 'education', label: '文化程度', width: '100', formatter: formatter },
          { prop: 'graduationSchool', label: '毕业院校', width: '150' },
          { prop: 'professional', label: '专业', width: '150' },
          { prop: 'graduationTime', label: '毕业时间', width: '100' },
          { prop: 'workYear', label: '工作年限', width: '150' },
          { prop: 'marriage', label: '婚姻状况', width: '150', formatter: formatter },
          { prop: 'political', label: '政治面貌', width: '150', formatter: formatter },
          { prop: 'birthPlace', label: '籍贯', width: '100' },
          { prop: 'residenceAddress', label: '户籍地址', width: '150' },
          { prop: 'currentAddress', label: '现住地址', width: '150' },
          {
            label: '紧急联络方式', children: [
              { prop: 'urgentPeople', label: '联络人', width: '100' },
              { prop: 'homePhone', label: '联络电话', width: '150' },
              { prop: 'relation', label: '与本人关系', width: '100' }
            ], component: configs
          },
          {
            label: '职称', children: [
              { prop: 'jobTitle', label: '职称', width: '100', component: 'formatter' },
              { prop: 'jobTitleProfession', label: '专业', width: '150' },
              { prop: 'jobTitleTime', label: '取得时间', width: '100', component: 'time' }
            ], component: configs
          },
          {
            label: '执业注册', children: [
              { prop: 'professionalRegistered', label: '注册', width: '150' },
              { prop: 'occupation', label: '专业', width: '150' },
              { prop: 'professionalCertificate', label: '证书编号', width: '150' },
              { prop: 'stampNum', label: '印章号', width: '150' },
              { prop: 'stampTime', label: '印章有效期', width: '100', component: 'time' }
            ], component: configs
          },
          {
            label: '社保', children: [
              { prop: 'insuredStatus', label: '参保状态', width: '100', component: 'formatter' },
              { prop: 'insuredUnit', label: '参保单位', width: '150', component: 'formatter' },
              { prop: 'startTime', label: '参保时间', width: '100', component: 'time' },
              { prop: 'insuredBase', label: '缴费基数(元)', width: '100' }
            ], component: configs
          },
          {
            label: '公积金', children: [
              { prop: 'insuredStatus1', label: '参保状态', width: '100', component: 'formatter' },
              { prop: 'insuredUnit1', label: '参保单位', width: '150', component: 'formatter' },
              { prop: 'startTime1', label: '参保时间', width: '100', component: 'time' },
              { prop: 'insuredBase1', label: '缴费基数(元)', width: '100' }
            ], component: configs
          },
          { prop: 'archivesAddress', label: '档案存放地', width: '150', formatter: formatter },
          {
            label: '劳动合同', children: [
              { prop: 'contractStartTime', label: '起止时间', width: '100', component: 'time' },
              { prop: 'contractExpired', label: '到期时间', width: '100', component: 'time' }
            ], component: configs
          },
          { prop: 'leaveDate', label: '离职日期', width: '150', component: time },
          { slot: 'opt' }
        ],
        socialcolConfigs: [
          { prop: 'secondarySector', label: '部门', width: '100', fixed: true, formatter: tertiarySector },
          { prop: 'insuredName', label: '姓名', width: '100', fixed: true },
          { prop: 'position2', label: '职务', width: '150' },
          // { prop: 'rank', label: '职级', width: '150' },
          {
            label: '社保', width: '900', children: [
              { prop: 'socialInsuredStatus', label: '参保状态', width: '100', component: 'insuredStatus' },
              { prop: 'socialInsuredUnit', label: '参保单位', width: '150', component: 'insuredUnit' },
              { prop: 'socialStartTime', label: '参保时间', width: '150', component: 'time' },
              { prop: 'socialInsuredBase', label: '缴费基数', width: '100' },
              { prop: 'socialCompanyPayment', label: '单位费用', width: '100' },
              { prop: 'socialPersonalPayment', label: '个人费用', width: '100' },
              { prop: 'unionPayme', label: '工会经费', width: '100' },
              { prop: 'openDoorFund', label: '残疾人基金', width: '100' },
              { prop: 'socialFinalMonth', label: '结算月数', width: '100' },
              { prop: 'socialSubtotal', label: '小计', width: '100' }
            ], component: configs1
          },
          {
            label: '公积金', width: '900', children: [
              { prop: 'providentInsuredStatus', label: '参保状态', width: '100', component: 'insuredStatus' },
              { prop: 'providentInsuredUnit', label: '参保单位', width: '150', component: 'insuredUnit' },
              { prop: 'providentStartTime', label: '参保时间', width: '150', component: 'time' },
              { prop: 'providentPayTime', label: '结算时间', width: '150', component: 'time' },
              { prop: 'providentInsuredBase', label: '缴费基数', width: '100' },
              { prop: 'providentCompanyPayment', label: '单位费用', width: '100' },
              { prop: 'providentPersonalPayment', label: '个人费用', width: '100' },
              { prop: 'providentFinalMonth', label: '结算月数', width: '100' },
              { prop: 'providentSubtotal', label: '小计', width: '100' }
            ], component: configs1
          },
          { prop: 'total', label: '总计', width: '100' }
        ],
        perArchivesColConfigs: [
          { prop: 'employeeName', label: '姓名', width: '150', fixed: true },
          { prop: 'secondarySector', label: '部门', width: '100', fixed: true, formatter: tertiarySector },
          // { prop: 'staffEntry', label: '员工入职表', width: '150', component: filePath },
          { prop: 'idNumber', label: '身份证', width: '150', component: filePath },
          { prop: 'diploma', label: '毕业证', width: '150', component: filePath },
          { prop: 'identificationPhoto', label: '证件照', width: '150', component: filePath },
          // { prop: 'internshipContract', label: '实习协议', width: '150', component: filePath },
          // { prop: 'resignProve', label: '离职证明', width: '150', component: filePath },
          // { prop: 'laborContract', label: '劳动合同', width: '150', component: filePath },
          // { prop: 'noPublicity', label: '保密合同', width: '150', component: filePath },
          { prop: 'technicalPosition', label: '职称证', width: '150', component: filePath },
          { prop: 'registration', label: '注册证', width: '150', component: filePath },
          { prop: 'credentials', label: '职业资格证', width: '150', component: filePath },
          { prop: 'graduateDiploma', label: '学位证', width: '150', component: filePath },
          { prop: 'other', label: '其他资料', width: '150', component: filePath }
        ],
        projectColConfigs: [
          { prop: 'projectName', label: '项目名称', width: '150', fixed: true },
          { prop: 'professions', label: '所属专业', width: '200', formatter: professions },
          { prop: 'teamName', label: '所属团队', width: '150' },
          { prop: 'contractCode', label: '合同编号', width: '150' },
          { prop: 'contractAmount', label: '合同金额(万元)', width: '150' },
          { prop: 'partyA', label: '甲方单位', width: '150' },
          { prop: 'address', label: '项目所属地', width: '150' },
          { prop: 'signDate', label: '签订日期', width: '150', component: time },
          { prop: 'projectLeader', label: '项目负责人', width: '150' },
          { prop: 'projectScale', label: '项目规模', width: '150' },
          { prop: 'projectCost', label: '造价(万元)', width: '150' },
          { prop: 'projectStage', label: '项目阶段', width: '150', formatter: projectStage },
          { prop: 'isProject', label: '有无项目子项目', width: '150', formatter: isProject },
          { prop: 'balance', label: '结算差额(万元)', width: '150' },
          { prop: 'isAdd', label: '形式', width: '150', formatter: isAdd },
          { prop: 'isTenderBook', label: '有无中标通知书', width: '150', formatter: isTenderBook },
          { slot: 'opt' }
        ],
        imgConfigs: [
          { prop: 'employeeName', label: '姓名', width: '120' },
          { prop: 'filePath', label: '文件', width: '135', component: filePath },
          { prop: 'dateCreated', label: '上传时间', width: '135', component: time }
        ],
        hackReset: false, // 重建table
        expandAll: false,
        searchForm: {},
        searchFormList: {},
        teams: [],
        roles: [],
        currentView: 'projectfinance',
        typeNames: [],
        listLoading: false,
        listLoading1: true,
        listLoading2: true,
        dialogTitle: '人员详情',
        dialogType: 0,
        teamRow: {
          socialSecurity: {},
          accumulationFund: {}
        },
        teamRowClear: {},
        socialSecurity: {},
        accumulationFund: {},
        tableData: [],
        tableDatan: [],
        tableData1: [],
        tableData2: [],
        pageNum: 1,
        pageNum1: 1,
        pageSize: 10,
        pageSize1: 10,
        total: 1,
        total1: 1,
        outerVisible: false,
        outerVisible1: false,
        pca: pca,
        visible: false,
        isDisabled: false,
        photoPath: {},
        entryForm: {},
        teamRowCollapse: '1',
        imgVisible: false,
        imgTableVisible: false,
        imgMsg: {},
        imgParams: {},
        imgTableData: [],
        imgListLoading: false,
        tableType: true
      }
    },
    created() {
      this.teamRowClear = JSON.parse(JSON.stringify(this.teamRow))
      // this.fetchData()
    },
    computed: {
      global() {
        return global
      }
    },
    methods: {
      fetchData() {
        this.listLoading = true
        globalIndex(this.searchFormList).then(response => {
          if (this.searchForm.type === 1) {
            this.tableData = response.responseBody.list
            this.total = response.responseBody.total
          } else if (this.searchForm.type === 2) {
            this.tableDatan = response.responseBody.list
            this.total1 = response.responseBody.total
          } else {
            this.tableData = response.responseBody.人员
            this.tableDatan = response.responseBody.项目.list
            this.total1 = response.responseBody.项目.total
          }
          this.listLoading = false
        })
      },
      detail(scope) {
        this.outerVisible = true
        this.dialogTitle = '人员详情'
        this.teamRow = JSON.parse(JSON.stringify(this.teamRowClear))
        // this.dialogType = 0
        const params = {
          employeeId: scope.row.employeeId
        }
        detailSelect(params).then(response => {
          this.tableData2 = []
          const data = response.responseBody.staffRecordCollect
          this.tableData1 = response.responseBody.securityFees
          this.tableData2.push(data)
          this.listLoading1 = false
          this.listLoading2 = false
        })
      },
      search() {
        this.hackReset = false
        this.pageNum = 1
        this.pageNum1 = 1
        this.searchFormList = JSON.parse(JSON.stringify(this.searchForm))
        if (this.searchFormList.type === 1) {
          this.searchFormList.pageNum = this.pageNum
          this.searchFormList.pageSize = this.pageSize
        } else if (this.searchFormList.type === 2) {
          this.expandAll = false
          this.searchFormList.pageNum = this.pageNum1
          this.searchFormList.pageSize = this.pageSize1
        } else {
          this.expandAll = false
          this.searchFormList.pageNum = this.pageNum1
          this.searchFormList.pageSize = this.pageSize1
        }
        if (this.searchForm.keyword && this.searchForm.type) {
          this.$nextTick(() => {
            this.hackReset = true
          })
          this.fetchData()
        } else {
          this.$message({
            message: '该搜索条件不完整!',
            type: 'warning'
          })
        }
      },
      handleSizeChange(val) {
        this.pageSize = val
        this.searchFormList.pageSize = this.pageSize
        this.fetchData()
      },
      handleCurrentChange(val) {
        this.pageNum = val
        this.searchFormList.pageNum = this.pageNum
        this.fetchData()
      },
      handleSizeChange1(val) {
        this.pageSize1 = val
        this.searchFormList.pageSize = this.pageSize1
        this.fetchData()
      },
      handleCurrentChange1(val) {
        this.pageNum1 = val
        this.searchFormList.pageNum = this.pageNum1
        this.fetchData()
      },
      openVisible(msg) {
        if (msg.label === '劳动合同' || msg.label === '保密合同' || msg.label === '职业资格证' || msg.label === '其他资料') {
          this.imgTableVisible = true
          this.imgParams = {
            collectId: msg.collectId
          }
          if (msg.label === '劳动合同') {
            this.imgParams.fileType = 1
          } else if (msg.label === '保密合同') {
            this.imgParams.fileType = 2
          } else if (msg.label === '职业资格证') {
            this.imgParams.fileType = 3
          } else {
            this.imgParams.fileType = 4
          }
          this.imgListLoading = true
          selectList(this.imgParams).then(response => {
            this.imgTableData = response.responseBody
            this.imgListLoading = false
          })
        } else {
          this.imgVisible = true
        }
        this.imgMsg = msg
      }
    },
    mounted() {
    }
  }
</script>


<style rel="stylesheet/scss" lang="scss" scoped>
  .app-container {
    .el-pagination {
      margin-top: 20px;
    }
    .table-btn {
      margin-bottom: 10px;
      & > button {
        margin: 0 20px;
      }
      .el-dialog {
        textarea {
          margin-top: 10px;
        }
        .el-checkbox {
          margin-right: 20px;
        }
        .el-checkbox + .el-checkbox {
          margin-left: 0;
        }
      }
      .file {
        display: none;
      }
    }
    .active-pic {
      font-size: 0.6rem;
      color: #9b9b9b;
      padding: 0 1rem 0 1.5rem;
      margin-top: 1rem;
    }
    .fileHidden {
      display: none;
    }
    .imgSrc {
      position: relative;
      width: 215px;
      height: 300px;
      img {
        width: 100%;
        height: 100%;
        border-radius: 6px;
      }
      i {
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
      }
    }
    .imgPlus {
      width: 215px;
      height: 300px;
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      &:hover {
        border-color: #409EFF;
      }
    }
    .entryFormSrc {
      position: relative;
      width: 100%;
      min-height: 300px;
      img {
        width: 100%;
        height: 100%;
        border-radius: 6px;
      }
      i {
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
      }
    }
    .entryFormPlus {
      width: 100%;
      height: 300px;
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      &:hover {
        border-color: #409EFF;
      }
    }
    .other {
      width: 300px;
      margin-bottom: -10px;
    }
    .other1 {
      margin-top: 10px;
    }
  }

</style>


<style rel="stylesheet/scss" lang="scss">
  .el-table__expanded-cell[class*=cell] {
    padding: 5px 41px 0;
  }

  .el-input__icon {
    line-height: 100%;
  }

  .el-form-item__content {
    line-height: 33px;
  }

  .area-select .area-selected-trigger {
    padding: 0 10px;
  }

  a, a:focus, a:hover {
    color: #409EFF;
  }

  /*.el-table__body tr.hover-row>td {
  background-color: #0000ff !important;
  }

  .el-table__body tr.current-row>td {
  background-color: #0000ff !important;
  }*/
</style>
